#include "addpeople.h"
#include "ui_addpeople.h"
#include<QFileDialog>
addPeople::addPeople(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::addPeople)
{
    ui->setupUi(this);
}

addPeople::~addPeople()
{
    delete ui;
}


void addPeople::on_pushButton_clicked()
{
    emit setPeopleItem(ui->lineEdit->text());
    ui->lineEdit->clear();
    hide();
}

